package com.jfinal.ext.ueditor.result;

import org.jetbrains.annotations.NotNull;

import java.util.LinkedList;
import java.util.List;

/**
 * @author Timor
 * @version 1.0
 * @date 2023/01/04 16:19:59
 */
public class ListFileResult<T extends FileRet> extends ListResult<T> {
    private Integer start = null;
    private Integer total = null;


    public ListFileResult(int start, int total, @NotNull List<T> list) {
        super(list);

        this.start = start;
        this.total = total;
    }

    public ListFileResult(int start, int total) {
        this(start, total, new LinkedList<>());
    }

    public ListFileResult(@NotNull String message) {
        super(message);
    }


    public Integer getStart() {
        return start;
    }

    public Integer getTotal() {
        return total;
    }

}
